<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 角色-编辑  -->
<input type="hidden" name="id" value="${entity.id}" />
<input type='hidden' id="module_ids" name='module_ids' />
<input type='hidden' id="module_names" name='module_names' />
<div class="form-group notnull">
	<div class="form-label w36">角色名称：</div>
	<div class="form-editor w64">
		<input class="f1 easyui-textbox" type="text" id="name" name="name" data-options="novalidate:'true',required:true,missingMessage:'角色名称不能为空'" value="${entity.name}"/></input>
	</div>
</div>
<%--<div class="form-group notnull">
	<div class="form-label w36">系统内置：</div>
	<div class="form-editor w64">
		<input class="easyui-radiobox" name="is_internal" data-options="label:'否'" value="N"   ${entity.is_internal=='N'?'checked':'' } >
		<input class="easyui-radiobox" name="is_internal" data-options="label:'是'" value="Y"   ${entity.is_internal=='Y'?'checked':'' }  >
	</div>
</div>--%>
<div class="form-group notnull">
	<div class="form-label w36">类型</div>
	<div class="form-editor w64">
		<select class = "easyui-combobox" id="type" name="type"data-options="novalidate:'true',required:true,missingMessage:'角色类型不能为空'" >
			<c:forEach items="${typeList}"  var="tp">
				<option value="${tp.column_value }" ${tp.column_value==entity.type?'selected':'' } >${tp.column_content }</option>
			</c:forEach>
		</select>
	</div>
</div>
<div class="form-group form-group-two" style="height:320px;width: 450px;">
	<div class="form-label w36">选择模块:</div>
	<div class="form-editor w64 " style=" padding-top:5px;overflow: auto; ">
		<ul id="moduleTree" class="easyui-tree" >
		</ul>
	</div>
</div>
<script type="text/javascript">
    $('#type').val("${entity.type}");
</script>